
<script>
	import {
		init
	} from "@/shopro";
	export default {
		onShow() {
			
			if(window.location.href.indexOf('/?spm=')!==-1){
				let data = window.location.href.split('/?spm=')[1]
				let uid= data.split('.')[0]
				 uni.setStorageSync('uids',uid)
			}else{
				uni.removeStorage('uids')
			}
		},
		onLaunch(options) {
			init(options);
		}
	};
</script>

<style lang="scss">
	@import 'static/style/index.scss';
</style>
